package com.design.yjx.decorator;

/**
 * @author yuanjianxin
 * @date 2017/8/3 11:09
 * 牛奶调料
 */
public class Milk extends CondimentDecorator {

    private Beverage beverage;

    public Milk(Beverage beverage) {
        this.beverage = beverage;
    }


    @Override
    public String getDescription() {
        return beverage.getDescription() + ",牛奶";
    }

    @Override
    public double getCost() {
        return beverage.getCost() + 0.3;
    }

}
